const reverse = str => str.split('').reverse().join('')
console.log(reverse('this is reverse'));